body {
    font-family: Arial, sans-serif;
    background-color: #f0f2f5;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
}

header {
    width: 100%;
    background-color: rgba(0,0,0,0.2);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-sizing: border-box;
    border-radius: 30px;
}

/* Navigation */
#navigation nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
}

#navigation nav ul li {
    margin-right: 20px;
}

#navigation nav ul li a {
    text-decoration: none;
    color: black;
    font-weight: bold;
    padding: 5px 10px;
    border-radius: 4px;
    transition: background-color 0.3s;
}

#navigation nav ul li a:hover {
    background-color: rgba(0,0,0,0.3);
}

#account img {
    width: 40px;
    height: 40px;
    /* border-radius: 50%; rounded profile picture */
    background-color: #ddd;
    display: block;
    /* border: 2px solid wheat; Maybe use border in the future? */
}

/* Tablet */
@media (max-width: 1000px) {
    #mainBody {
        grid-template-columns: 200px 1fr;
        gap: 15px;
    }
}

@media (max-width: 768px) {
    header {
        padding: 10px;
    }

    #navigation nav ul {
        justify-content: center;
        flex-grow: 1;
    }
}

/* container for the profile area */
#account {
    position: relative;
    display: inline-block;
    margin: 20px;
    float: right;
}

/* user photo (the clickable element) */
.profile-photo {
    width: 50px;
    height: 50px;
    border-radius: 75%;
    cursor: pointer;
    border: 2px solid #ccc;
    transition: border-color 0.2s ease;
}

/* hoverimisel sinine ääris */
.profile-photo:hover {
    border-color: #4a90e2;
}

/* dropdown menu (hidden by default) */
.dropdown {
    display: none;
    position: absolute;
    right: 0;
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    width: 200px;
    z-index: 100;
}

.dropdown.active {
    display: block;
}

.dropdown-item {
    padding: 12px 15px;
    border-bottom: 1px solid #ccc;
}

.dropdown-item strong {
    display: block;
    font-size: 1rem;
    color: #333;
}

.dropdown-item span {
    font-size: 0.9rem;
    color: #666;
}

.logout {
    display: block;            /* et näeks välja nagu nupp */
    color: #e74c3c;
    text-align: center;
    cursor: pointer;
    font-weight: bold;
    border-radius: 0 0 8px 8px;
    padding: 12px 0;
    text-decoration: none;     /* eemaldab linkide allajoone */
    background-color: #fff;
}

.logout:hover {
    background-color: #fcebea;
}